From: Jonas Dreßler Date: Tue, 18 Feb 2020 22:21:52 +0000 (+0100) Subject: workspace: Ensure style of window-chrome titles before requesting width X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~772^2^2~106 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=cf5204760d64ba6604ef7baa845082be82f3853e;p=gnome-shell.git workspace: Ensure style of window-chrome titles before requesting width Make sure the stylesheet properties of the window-chrome title are updated before requesting the preferred width of the title to prevent size changes of the title after we animated the width. Fixes https://gitlab.gnome.org/GNOME/gnome-shell/issues/58 --- diff --git a/js/ui/workspace.js b/js/ui/workspace.js index 3cfce9845..5fa818491 100644 --- a/js/ui/workspace.js +++ b/js/ui/workspace.js @@ -578,6 +578,8 @@ var WindowOverlay = class { border.remove_all_transitions(); title.remove_all_transitions(); + title.ensure_style(); + let [cloneX, cloneY, cloneWidth, cloneHeight] = this._windowClone.slot; let layout = Meta.prefs_get_button_layout();